package org.bingo.security.core.social.qq.connect;

import org.bingo.security.core.social.qq.api.QQ;
import org.springframework.social.connect.support.OAuth2ConnectionFactory;

/**
 * connection工厂
 */
public class QQConnectionFactory extends OAuth2ConnectionFactory<QQ> {

    /**
     * 构造方法
     * @param providerId 后面从配置中获得。
     * @param appId
     * @param appSecret
     */
    public QQConnectionFactory(String providerId, String appId, String appSecret) {
        super(providerId, new QQServiceProvider(appId, appSecret), new QQAdapter());
    }
}
